package com.sky.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Component
@Slf4j
public class MyTask {
    /**
     * 测试任务
     */

//    @Scheduled(cron = "0/1 * * * * ?")
    public void testTask(){
        log.info("测试任务执行,当前时间:{}", LocalDateTime.now());
    }
}
